package com.icoolkj.ms.api.auth.feign;

import com.icoolkj.ms.common.core.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author icoolkj
 * @version 1.0
 * @description 账户管理Feign客户端
 * @createDate 2025/02/04 16:33
 */
@FeignClient(value = "icoolkj-ms-auth", contextId = "accountManage")
public interface AccountManageFeignClient {

    /**
     * 根据用户ID逻辑删除账户
     *
     * @param uid 用户ID
     * @return 操作结果
     */
    @DeleteMapping("/feign/account/delete/{uid}")
    ServerResponseEntity<Integer> deleteByUid(@PathVariable("uid") Long uid);

    /**
     * 批量逻辑删除账户
     *
     * @param uids 用户ID数组
     * @return 操作结果
     */
    @PostMapping("/feign/account/batch/delete")
    ServerResponseEntity<Integer> batchDeleteByUids(@RequestBody Long[] uids);
} 